import com.flower.sequence.service.SegmentGenerator;
import com.flower.sequence.service.StringSequenceGenerator;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName YfTagTest
 * @Description TODO
 * @Author yf
 * @Date 2018/10/14 23:32
 * @Version 1.0
 */
public class YfTagTest {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");


        StringSequenceGenerator sequenceGenerator =  (StringSequenceGenerator) context.getBean("uuidTest");
        System.out.println(sequenceGenerator.getStringSequence());

        StringSequenceGenerator sequenceGenerator2 =  (StringSequenceGenerator) context.getBean("a222");
        System.out.println(sequenceGenerator2.getStringSequence());

        SegmentGenerator segmentGenerator =  (SegmentGenerator) context.getBean("aaaa");
        System.out.println(segmentGenerator.getStringSegment());

        SegmentGenerator segmentGenerator2 =  (SegmentGenerator) context.getBean("bbbb");
        System.out.println(segmentGenerator2.getStringSegment());

    }
}
